package com.hua.schedule;

import com.hua.service.StoreInfoService;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * @author chenlong
 * @version jdk1.8
 * @dscription ProjectOfMilk UpdateStoreInfo
 * @date 2022/10/27 22:40
 */
@Component
public class UpdateStoreInfo {

    @Resource
    private StoreInfoService storeInfoService;

        @Scheduled(cron = "* * 1 * * ?")
//    @Scheduled(cron = "* * * * * ?")
    void updateStoreInfo() {
        storeInfoService.updateStoreLastMonthIncome();
    }
}
